const cloud = require('wx-server-sdk')
cloud.init()
exports.main = async (event, context) => {
  try {
    console.log(123);
    
    const result = await cloud.openapi.serviceMarket.invokeService({
      service: 'wxee446d7507c68b11',
      api: 'imgSecCheck',
      data: {
        imgUrl: 'https://736d-smalltool-5ezhy-1301553765.tcb.qcloud.la/default.jpg',
        dataType: 3,
        ocrType: 1
      },
      clientMsgId: '1'
    })
    return result
  } catch (err) {
    return err
  }
}